<%--
  Created by IntelliJ IDEA.
  User: 13976
  Date: 2019/10/5
  Time: 19:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basepath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <title>Title</title>
    <base href="<%=basepath %>"/>
    <link rel="stylesheet" href="static/layui/css/layui.css">
</head>
<body style="background-color: #93D1FF">
<div style="margin: 40px">
<h2>修改信息</h2>
</div>


    <div class="layui-form-item">
        <label class="layui-form-label">软件名称</label>
        <div class="layui-input-inline">
            <input type="text" value="${xin.softwarename}" name="softwarename" required  lay-verify="required" placeholder="请输入软件名称" disabled="disabled" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">APK名称</label>
        <div class="layui-input-inline">
            <input type="text" value="${xin.apkname}" name="apkname"  required lay-verify="required" placeholder="请输入APK名称" autocomplete="off" disabled="disabled" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">支持ORM</label>
        <div class="layui-input-inline">
            <input type="text" value="${xin.supportrom}" name="supportrom" required lay-verify="required" placeholder="请输入支持ORM" autocomplete="off" disabled="disabled" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">界面语言</label>
        <div class="layui-input-inline">
            <input type="text" value="${xin.interfacelanguage}" name="interfacelanguage"  required lay-verify="required" placeholder="请输入界面语言" disabled="disabled" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">软件大小</label>
        <div class="layui-input-inline">
            <input type="text" value="${xin.softwaresize}" name="softwaresize" required lay-verify="required" placeholder="请输入软件大小" disabled="disabled" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">下载次数</label>
        <div class="layui-input-inline">
            <input type="text" name="downloads" value="${xin.downloads}" required lay-verify="required" placeholder="请输入下载次数" disabled="disabled" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">所属平台</label>
        <div class="layui-input-inline">
            <input type="text" disabled="disabled"  name="downloads" value="${xin.flatformid}" required lay-verify="required" placeholder="请输入下载次数" disabled="disabled" autocomplete="off" class="layui-input">
        </div>
    </div>
   <div class="layui-form-item">
        <label class="layui-form-label">一级分类</label>
        <div class="layui-input-inline">
            <input type="text" disabled="disabled"  name="downloads" value="${xin.fei5}" required lay-verify="required" placeholder="请输入下载次数" disabled="disabled" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label  class="layui-form-label">二级分类</label>
        <div class="layui-input-inline">
            <input type="text" disabled="disabled"  name="downloads" value="${xin.fei3}" required lay-verify="required" placeholder="请输入下载次数" disabled="disabled" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">三级分类</label>
        <div class="layui-input-inline">
            <input type="text" disabled="disabled"  name="downloads" value="${xin.fei4}" required lay-verify="required" placeholder="请输入下载次数" disabled="disabled" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">APP状态</label>
        <div class="layui-input-inline">

            <input type="text" disabled="disabled"  name="downloads" value="${xin.status}" required lay-verify="required" placeholder="请输入下载次数" disabled="disabled" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">版本简介</label>
        <div class="layui-input-block">

            <input type="text" disabled="disabled"  name="downloads" value="${xin.appinfo}" required lay-verify="required" placeholder="请输入下载次数" disabled="disabled" autocomplete="off" class="layui-input">
        </div>
    </div>



                        <img src="static/images/${xin.logolocpath}" id="ppa" alt="图片" class="layui-upload-img">






        <div class="layui-form-item">

            <div class="layui-input-inline">
                <input type="hidden" value="${xin.id}" id="ii" name="id" required  lay-verify="required" placeholder="请输入软件名称" autocomplete="off" class="layui-input">
            </div>
        </div>
</form>
<table id="demo" lay-filter="test"></table>
<script src="static/js/jquery.min.js"></script>
<script src="static/ruoyi/ry-ui.js"></script>
<script src="static/layui/layui.all.js"></script>
<script src="static/validate/jquery.validate.min.js"></script>
<script src="static/validate/messages_zh.min.js"></script>
<script src="static/validate/jquery.validate.extend.js"></script>

<script type="text/javascript">
    //init method one


    //多图片上传
    var id=$("#ii").val();
    layui.use('table', function() {
        var table = layui.table;


        //第一个实例
        table.render({
            elem: '#demo'
            , height: 300
            , url: 'ver/list/'+id //数据接口

            , cols: [[ //表头


                {field: 'yi', title: '软件名字', width: 150}
                , {field: 'versionno', title: '版本号', width: 100}

                , {field: 'versionsize', title: '版本大小(M)', width: 105}
                , {field: 'er', title: '发布状态', width: 100}
                , {field: 'downloadlink', title: '文件下载地址', width: 200}
                , {field: 'updatedTime', title: '最近更新时间', width: 150}

                /*,{field: 'grade.gname', title: '年级', templet: function(d){
                        return d.grade.gname
                    }}*/

            ]],
            parseData: function (res) { //res 即为原始返回的数据
                return {
                    "code": res.code, //解析接口状态
                    "msg": res.msg, //解析提示文本
                    "count": res.count, //解析数据长度
                    "data": res.data //解析数据列表
                };
            }
            , id: 'testReload'
            , page: true
        });




    })






</script>

</body>
</html>
